/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.addressBook.bean;

import java.awt.image.BandCombineOp;
import java.util.ArrayList;

/**
 *
 * @author Administrator
 */
public class UserInfo implements Comparable<UserInfo> {

    private String N = "";//名字(分开) 写入时要求:要按照:姓;名;;;
    private String FN = "";//名字(全称)写入时要求:要按照:直接写就可以
    private ArrayList<String> TEL = new ArrayList<String>();//电话(type=?)写入时要求:要按照:type=?,?,?:电话
    private ArrayList<String> EMAIL = new ArrayList<String>();//邮箱(type=?)写入时要求:要按照:type=?,?,?:邮箱
    private String BRITHDAY = "";//生日(1999-06-12)写入时要求:要按照:yy-mm-dd
    private String NOTE = "";//备注 写入时要求:要按照:CHARSET=UTF-8:???
    private String PHOTO = "";//图片 写入时要求:ENCODING=B;TYPE=??(文件格式 主要是JPEG):??
    private String CATEGORIES = "";//分类信息 写入要求: 
    private String ORG = "";//组织 写入要求:CHARSET=UTF-8:???
    private String TITLE = "";//职称 写入要求:CHARSET=UTF-8:???
    private boolean empty=true;

    /**
     * @return the N
     */
    public String getN() {
        return N;
    }

    /**
     * @param N the N to set
     */
    public void setN(String N) {
        this.N = N;
    }

    /**
     * @return the FN
     */
    public String getFN() {
        return FN;
    }

    /**
     * @param FN the FN to set
     */
    public void setFN(String FN) {
        this.FN = FN;
    }

    /**
     * @return the TEL
     */
    public ArrayList<String> getTEL() {
        return TEL;
    }

    /**
     * @param TEL the TEL to set
     */
    public void setTEL(ArrayList<String> TEL) {
        this.TEL = TEL;
    }

    /**
     * @return the EMAIL
     */
    public ArrayList<String> getEMAIL() {
        return EMAIL;
    }

    /**
     * @param EMAIL the EMAIL to set
     */
    public void setEMAIL(ArrayList<String> EMAIL) {
        this.EMAIL = EMAIL;
    }

    /**
     * @return the BRITHDAY
     */
    public String getBRITHDAY() {
        return BRITHDAY;
    }

    /**
     * @param BRITHDAY the BRITHDAY to set
     */
    public void setBRITHDAY(String BRITHDAY) {
        this.BRITHDAY = BRITHDAY;
    }

    /**
     * @return the NOTE
     */
    public String getNOTE() {
        return NOTE;
    }

    /**
     * @param NOTE the NOTE to set
     */
    public void setNOTE(String NOTE) {
        this.NOTE = NOTE;
    }

    /**
     * @return the PHOTO
     */
    public String getPHOTO() {
        return PHOTO;
    }

    /**
     * @param PHOTO the PHOTO to set
     */
    public void setPHOTO(String PHOTO) {
        this.PHOTO = PHOTO;
    }

    /**
     * @return the CATEGORIES
     */
    public String getCATEGORIES() {
        return CATEGORIES;
    }

    /**
     * @param CATEGORIES the CATEGORIES to set
     */
    public void setCATEGORIES(String CATEGORIES) {
        this.CATEGORIES = CATEGORIES;
    }

    /**
     * @return the ORG
     */
    public String getORG() {
        return ORG;
    }

    /**
     * @param ORG the ORG to set
     */
    public void setORG(String ORG) {
        this.ORG = ORG;
    }

    /**
     * @return the TITLE
     */
    public String getTITLE() {
        return TITLE;
    }

    /**
     * @param TITLE the TITLE to set
     */
    public void setTITLE(String TITLE) {
        this.TITLE = TITLE;
    }

    @Override
    public int compareTo(UserInfo o) {
        if (this.N.compareTo(o.getN()) > 0) {
            return 1;
        }
        if (this.N.compareTo(o.getN()) < 0) {
            return -1;
        }
        return 0;
    }

    /**
     * @return the empty
     */
    public boolean isEmpty() {
        return empty;
    }

    /**
     * @param empty the empty to set
     */
    public void setEmpty(boolean empty) {
        this.empty = empty;
    }
}
